<?php
/* *
 * 首页
 * */
namespace app\index\controller;
use app\base\controller\BaseController;
use framework\Flight;

class IndexController extends BaseController{

    private $index = null;

    public function __construct() {
        $this->index = Flight::model('index/index');
    }

    //Hello world
    public function index(){
        $val = $this->index->index();
        $this->assign('Hello',$val);
        $this->display('index','layout');
        $this->display('layout');
    }

}